package com.yuzhi.master.trunkMain.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.yuzhi.common.core.mapper.BaseMapperPlus;
import com.yuzhi.master.trunkMain.domain.TrunkMain;
import com.yuzhi.master.trunkMain.domain.vo.TrunkMainVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 干管表Mapper接口
 *
 * @author auto code generator
 * @date 2025-08-13
 */
public interface TrunkMainMapper extends BaseMapperPlus<TrunkMainMapper, TrunkMain, TrunkMainVo> {

    /**
     * 分页查询干管表
     */
    Page<TrunkMainVo> selectPageList(@Param("page") Page<TrunkMainVo> page, @Param(Constants.WRAPPER) Wrapper<TrunkMain> queryWrapper);

    /**
     * 根据干管代码ID查询
     */
    TrunkMainVo selectByTrunkmainId(@Param("trunkmainId") String trunkmainId);

    /**
     * 根据干管名称模糊查询
     */
    TrunkMainVo selectByTrunkmainName(@Param("trunkmainName") String trunkmainName);

    List<TrunkMainVo> queryBachList();
}
